FROM nginx-custom

# 删除默认的 Nginx HTML 文件
# RUN rm -rf /usr/share/nginx/html/*
# RUN rm -rf /etc/nginx/conf.d/default.conf

# 将本地的前端打包文件复制到 Nginx 镜像中
# COPY dist /usr/share/nginx/html
# COPY ./nginx/ssl /etc/nginx/ssl

# 复制自定义 Nginx 配置文件
# COPY ./nginx/default.conf /etc/nginx/conf.d/

EXPOSE 8080
EXPOSE 443

# 启动Nginx服务
CMD ["nginx", "-g", "daemon off;"]